var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0}), (o.ResourceMgr = void 0);
var n = cc._decorator,
    i =
        (n.ccclass,
        n.property,
        (function () {
            function t() {
                this.texts = {};
            }
            return (
                (t.prototype.init = function () {
                    cc.resources.preloadDir("texts", cc.SpriteFrame, function () {});
                }),
                (t.prototype.getTextSprite = function (t, e) {
                    var o = this,
                        n = "text" + t;
                    this.texts[n]
                        ? e(this.texts[n])
                        : cc.resources.load("texts/" + (t + 1), cc.SpriteFrame, function (t, i) {
                              (o.texts[n] = i), e(i);
                          });
                }),
                t
            );
        })()),
    s = (window.UIMgr = new i());
o.ResourceMgr = s;
